﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelBooking
{
    public class Encoder
    {
        private String order = string.Empty;
        

        public static string Converter(OrderObject order)
        {
            //converter o OrderObject into string order
            string ob_encode = String.Empty;
            if (order != null)
            {
                ob_encode = order.SenderId.ToString() + " " + order.CardNo.ToString() + " " + order.ReceiverID.ToString() + " " + order.Amount.ToString();
                
            }
            return ob_encode;

        }

    }
}
